package cn.hdu.liang.exceptions;

public class Cleanup {
    public static void main(String[] args) {
        try {
            InputFile in = new InputFile("src/java/cn/hdu/liang/exceptions/Cleanup.java");
            try {
                String s;
                int i = 1;
                while((s = in.getLine()) != null) {

                }
            } catch(Exception e) {
                System.out.println("主函数获得异常");
                e.printStackTrace(System.out);
            } finally {
                in.dispose();
            }
        } catch(Exception e) {
            System.out.println("InputFile对象创建失败");
        }
    }
}
